// ignore_for_file: avoid_print

import 'package:fluent_ui/fluent_ui.dart';

const Widget spacer = SizedBox(height: 5.0);

class ListPage extends StatefulWidget {
  const ListPage({Key? key}) : super(key: key);

  @override
  _ListPageState createState() => _ListPageState();
}

class _ListPageState extends State<ListPage> {
  final _controller = ScrollController();

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    final people = {
      'Mass in B minor': 'Johann Sebastian Bach',
      'Third Symphony': 'Ludwig van Beethoven',
      'Serse': 'George Frideric Hendel',
    };
    return ScaffoldPage(
        header: PageHeader(leading: Text('Your Songs')),
      content: Scrollbar(
      child: ListView.builder(
          itemCount: people.length,
          padding: EdgeInsets.only(right: 16.0),
          itemBuilder: (context, index) {
            final title = people.keys.elementAt(index);
            final subtitle = people[title];
            return ListTile(
              leading: CircleAvatar(),
              title: Text(title),
              subtitle: Text(subtitle!),
            );
          }),
    ),);
  }
}